package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("performance_appeal")
@ApiModel(value = "绩效考评申诉")
public class PerformanceAppeal {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("职位")
    private String position;

    @ApiModelProperty("部门")
    private String department;

    @ApiModelProperty("入职日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate entryDate;

    @ApiModelProperty("申诉日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime appealDate;

    @ApiModelProperty("申诉人直接上司")
    private String directSuperior;

    @ApiModelProperty("申诉原因")
    private String appealReason;

    @ApiModelProperty("申诉事项描述")
    private String appealDescription;

    @ApiModelProperty("申诉处理结果")
    private String appealResult;

    @ApiModelProperty("处理人")
    private String handler;

    @ApiModelProperty("确认人")
    private String confirmor;

    @ApiModelProperty("申诉处理结果验证")
    private String resultVerification;

    @ApiModelProperty("结案日期")
    private LocalDate closeDate;

    @ApiModelProperty("验证人")
    private String verifier;

    @ApiModelProperty("验证日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate verificationDate;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
}